<!DOCTYPE HTML>
<html>
	<head>
		<title></title>
		<script type="text/javascript" src="__JS__/jquery-2.0.3.min.js"></script>
		<link rel="stylesheet" type="text/css" href="__CSS__/group.css" media="all">
		<!--日历插件-->
		<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
		<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
		<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    	<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
    	<link rel="stylesheet" type="text/css" href="__CSS__/bootstrap.css" media="all">
    	<script type="text/javascript" src="__JS__/bootstrap.js" charset="UTF-8"></script>
	</head>
	<body>
		<!--nav-->
		<nav class="navbar navbar-default navbar-inverse" role="navigation">
		  <div class="container-fluid">
		    <!-- Brand and toggle get grouped for better mobile display -->
		    <div class="navbar-header">
		      <img class="logo" src="__IMG__/logo.png"/>
		    </div>
		    <!-- Collect the nav links, forms, and other content for toggling -->
		    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
		      <ul class="nav navbar-nav">
		        <li class="active"><a href="{:U('Group/Index/index')}">{$user['g_name']}</a></li>
		        <li><a href="{:U('Group/Index/index')}">组员</a></li>
		        <li><a href="{:U('Group/Index/userinfo')}">用户</a></li>
		        <li><a href="{:U('Group/Index/new_user')}">新增用户</a></li>
		      </ul>
		      <form class="navbar-form navbar-left" role="search">
		        <div class="form-group">
		          <input type="text" class="form-control" placeholder="Search">
				  <input type="text" id="bg_time" name="start_time"  class="form-control max100" value="{$start|date='Y-m-d',###}" placeholder="开始时间">
				  <input type="text" id="cs_time" name="end_time"  class="form-control max100" value="{$end|date='Y-m-d',###}" placeholder="结束时间">
		        </div>
		        <button type="submit" class="btn btn-default">搜索</button>
		     </form>
		      	<ul class="nav nav-pills navbar-right margintop5" role="tablist">
				  <li role="presentation" class="active"><a href="#">本月新增人数 <span class="badge">{$_SESSION['newpeople']}</span></a></li>
				  <li role="presentation"><a href="#">退出登录</a></li>
				</ul>
		    </div><!-- /.navbar-collapse -->
		  </div><!-- /.container-fluid -->
		</nav><!--/.nav-->


		<!--<div class="group-header-box">
			<div class="group-header-center">
				<img class="group-header-img" src="__IMG__/logo.png" />
				<ul class="group-header-ul">
					<a href="{:U('Group/Index/index')}"><li>组信息</li></a>
					<a href="#"><li>Admin</li></a>
				</ul>
				<div class="right">
					<div class="right-time">
						<span>时间:</span>
						<input type="text" id="bg_time" name="start_time"  class="search-input" value="{$start|date='Y-m-d',###}" placeholder="开始时间">
						<input type="text" id="cs_time" name="end_time"  class="search-input" value="{$end|date='Y-m-d',###}" placeholder="结束时间">
					</div>
				</div>
				<div class="group-header-searchbox">
					<input class="group-header-input" type="text" placeholder="输入手机号码或者昵称查询" id='mobile_val' value="{:I('mobile')}"/>
					<div class="group-header-search" id="search_btn">
						<img src="__IMG__/search.svg" />
					</div>
				</div>
			</div>
			<a class="group-back" href="{:U('Group/Login/outlogin')}"><span>退出登录</span></a>
		</div>-->
		<!--<div class="group-header-tabcont">
			<div class="group-header-tabcenter">
		
				<div class="left">
					<span>{$user['g_name']}</span>
					<span><a href="{:U('Group/Index/index')}">组员</a></span>
					<span><a href="{:U('Group/Index/userinfo')}">用户</a></span>
					<span><a href="{:U('Group/Index/new_user')}">新增用户</a></span>
				</div>
				<div class="right-img">
					<img src="__IMG__/tips.svg" />
					<span>本月新增<elm>{$_SESSION['newpeople']}</elm>人</span>
	
				</div>
			</div>
		</div>-->
		<block name="body"></block>
	</body>
<script type="text/javascript">
$('#bg_time').datetimepicker({
    format: 'yyyy-mm-dd',
    language:"zh-CN",
    minView:2,
    autoclose:true
});
$('#cs_time').datetimepicker({
    format: 'yyyy-mm-dd',
    language:"zh-CN",
    minView:2,
    autoclose:true
});
//$('.group-header-selectcked').click(function(){
//	$('.group-header-option').toggle()
//})
//$('.group-header-option').delegate('span','click',function(){
//	var htm=$(this).html();
//	$('.group-header-selectcked').html(htm);
//	$('.group-header-option').hide();
//})
$(function(){
	$('#search_btn').click(function(){
		var start_time=$('#bg_time').val();
		var end_time=$('#cs_time').val();
		var mobile=$('#mobile_val').val();
		var string=window.location.href;
		var arr=string.split('&');
		window.location.href=arr[0]+'&start_time='+start_time+'&end_time='+end_time+'&mobile='+mobile;
	})
})
</script>
</html>